﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NFAPI
{
    public class Person
    {
        [XPath("/person/id/text()")]
        public string Id { get; set; }
        
        [XPath("/person/name/text()")]
        public string Name { get; set; }

        [XPath("/person/link[@rel='http://schemas.netflix.com/catalog/titles.filmography']")]
        public Link Filmography { get; set; }

        [XPath("/person/link[@title='web page']")]
        public Link WebPage { get; set; }

        [XPath("/person/bio/text()")]
        public string Bio { get; set; }
    }

    public class PersonList : List<Person>
    {
        [XPath("/people/person")]
        public List<Person> Items
        {
            get { return this; }
        }
    }
}
